def f(number):
    def transformation(number):
        lists=[]
        new_number=abs(number)
        while new_number >0:
            residue = new_number % 3
            new_number = new_number // 3
            lists.append(residue)
            lists.reverse()
        base_3_line="".join(map(str,lists))
        if number<0:
            base_3_line = "-" + base_3_line
        print(int(base_3_line))
    def path(n):
        D_positive={"0":"⇧","1":"⬁","2":"⬀"}
        D_negative={"0":"⇩","1":"⬂","2":"⬃"}
        line=""
        if int(n)<0:
            new_argument=n.replace("-","")
            for i in new_argument[::-1]:
                line += D_negative[i]
            print("This is how we will travel (reading digits from right to left):")
            print(f"{line}")
        else:
            for i in n[::-1]:
                line += D_positive[i]
            print("This is how we will travel (reading digits from right to left):")
            print(f"{line}")
        directions_positive=[(0,1),(-1,1),(1,1)]
        directions_negative=[(0,-1),(1,-1),(-1,-1)]
        x,y=0,0
        x_list=[0]
        y_list=[0]
        dimension_list=list(zip(x_list,y_list))
        if int(n)<0:
            n = n.replace("-", "")
            for i in n[::-1]:
                x_new,y_new=directions_negative[int(i)]
                x=x+x_new
                y=y+y_new
                x_list.append(x)
                y_list.append(y)
            max_x=max(x_list)
            max_y=max(y_list)
            min_x=min(x_list)
            min_y=min(y_list)
            for y in range(max_y,min_y,-1):
                initial=""
                for x in range(min_x,max_x+1):
                    if (x,y) in dimension_list:
                        initial += line[abs(y)]
                    else:
                        initial += " "
                initial.rstrip()
                print(initial)

def transformation(number):
    lists=[]
    new_number=abs(number)
    while new_number >0:
        residue = new_number % 3
        new_number = new_number // 3
        lists.append(residue)
        lists.reverse()
    base_3_line="".join(map(str,lists))
    if number<0:
        base_3_line = "-" + base_3_line
    print(int(base_3_line))
def path(n):
    D_positive={"0":"⇧","1":"⬁","2":"⬀"}
    D_negative={"0":"⇩","1":"⬂","2":"⬃"}
    line=""
    if int(n)<0:
        new_argument=n.replace("-","")
        for i in new_argument[::-1]:
            line += D_negative[i]
        print("This is how we will travel (reading digits from right to left):")
        print(f"{line}")
    else:
        for i in n[::-1]:
            line += D_positive[i]
        print("This is how we will travel (reading digits from right to left):")
        print(f"{line}")
    directions_positive=[(0,1),(-1,1),(1,1)]
    directions_negative=[(0,-1),(1,-1),(-1,-1)]
    x,y=0,0
    x_list=[0]
    y_list=[0]
    dimension_list=list(zip(x_list,y_list))
    if int(n)<0:
        n = n.replace("-", "")
        for i in n[::-1]:
            x_new,y_new=directions_negative[int(i)]
            x=x+x_new
            y=y+y_new
            x_list.append(x)
            y_list.append(y)
        max_x=max(x_list)
        max_y=max(y_list)
        min_x=min(x_list)
        min_y=min(y_list)
        for y in range(max_y,min_y,-1):
            initial=""
            for x in range(min_x,max_x+1):
                if (x,y) in dimension_list:
                    initial += line[abs(y)]
                else:
                    initial += " "
            initial.rstrip()
            print(initial)

def do_test():
    D_positive = {"0": "⇧ ","3": " ⇧", "1": "⬁", "2": "⬀", "4":"  "}
    res = []
    # (0,0)对用的单元格是斜向上，(1,1)对用的单元格是斜向上
    line1 = f"{0*D_positive['4']}{D_positive['2']}"
    res.append(line1)
    line2 = f"{1*D_positive['4']}{D_positive['2']}"
    res.append(line2)
    # 第一行再最上面，第N行再最上面
    for i in range(0,len(res)):
        index = len(res) - i - 1
        print(res[index])

if __name__ == '__main__':
    do_test()